package model.item;

import model.entity.Entity;
import model.stats.StatsPersistMods;

public class Armor extends InventoryItem {

	private StatsPersistMods statMods;

	public Armor(Integer value, String name, StatsPersistMods statMods) {
		super(value, name);
		this.statMods = statMods;
	}
	
	
	public Armor(){
		super(new Integer(5), new String("Plain Armor"));
		this.statMods=new StatsPersistMods();
	}
	
	public StatsPersistMods getStatMods(){
		return this.statMods;
	}
	
	public void setStatMods(StatsPersistMods statMods){
		this.statMods = statMods;
	}
	
	@Override
	public void use(Entity entity) {
		entity.equipArmor(this);

	}
	
	public static Armor getDefaultArmor() {
		return new Armor(0, "Toga", new StatsPersistMods());
	}

}
